package com.refuel.domain;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;

/**
 * @author zhanghao
 * @description
 * @date 2024/5/16 22:21
 **/
@Schema(description = "订单")
public class Order {

    /**
     * 订单id
     */
    @Schema(description = "订单id", example = "202400000001")
    private String orderId;

    /**
     * 用户唯一id
     */
    @Schema(description = "用户id", example = "123456")
    private String uid;

    /**
     * 下单商品id
     */
    @Schema(description = "下单商品id", example = "GD00001")
    private String goodsId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2024-05-10 15:02:00")
    private Date createTime;

    /**
     * 支付时间
     */
    @Schema(description = "支付时间", example = "2024-05-10 15:02:00")
    private Date payTime;

    /**
     * 订单价格
     */
    @Schema(description = "订单价格", example = "9.50")
    private Double price;

    /**
     * 订单状态
     */
    @Schema(description = "订单状态", example = "PAY_OK")
    private String status;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
